package com.biostime.terminal.vo.service;

import java.util.List;

public class Query {

    /**
     * 字段名
     */
    private String colName;
    /**
     * 类型
     *
     * @see QueryType
     */
    private QueryType queryType;
    /**
     * 值
     */
    private List<String> values;
    /**
     * Join 列表
     */
    private List<Join> joinList;

    /**
     * 查询id
     */
    private int qid;

    /**
     * 查询父id
     */
    private int pid;

    /**
     * 组合查询列表
     */
    private List<Query> queryList;

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Query{");
        sb.append("colName='").append(colName).append('\'');
        sb.append(", queryType=").append(queryType);
        sb.append(", values=").append(values);
        sb.append(", joinList=").append(joinList);
        sb.append(", qid=").append(qid);
        sb.append(", pid=").append(pid);
        sb.append(", queryList=").append(queryList);
        sb.append('}');
        return sb.toString();
    }

    public List<Query> getQueryList() {
        return queryList;
    }

    public void setQueryList(List<Query> queryList) {
        this.queryList = queryList;
    }

    public String getColName() {
        return colName;
    }

    public void setColName(String colName) {
        this.colName = colName;
    }

    public QueryType getQueryType() {
        return queryType;
    }

    public void setQueryType(QueryType queryType) {
        this.queryType = queryType;
    }

    public List<String> getValues() {
        return values;
    }

    public void setValues(List<String> values) {
        this.values = values;
    }

    public List<Join> getJoinList() {
        return joinList;
    }

    public void setJoinList(List<Join> joinList) {
        this.joinList = joinList;
    }

    public int getQid() {
        return qid;
    }

    public void setQid(int qid) {
        this.qid = qid;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }
}
